﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GRUPO_4.Dominio.Profesion>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Editar Profesion</h2>
     <% Html.EnableClientValidation(); %>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Campos</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => Model.codProfesion) %>
            </div>

            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.codProfesion, new { @readonly = "readonly" })%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.nombreProfesion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => Model.nombreProfesion)%>
                <%: Html.ValidationMessageFor(model => Model.nombreProfesion)%>
            </div>           
            <p>
                <input type="submit" value="Guardar" />
            </p>
        </fieldset>

    <% } %>

     <div>
        <%: Html.ActionLink("Regresar", "Index") %>
    </div>
</asp:Content>
